package com.whfc.wxmp.api.safety.service.impl;

import com.whfc.safety.dto.SafetyPartDTO;
import com.whfc.safety.service.SafetyPartService;
import com.whfc.wxmp.api.safety.service.WxSafetyPartService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClasssName WxQualityPartServiceImpl
 * @Description 质量问题部位 实现
 * @Author hw
 * @Date 2020/8/4 18:41
 * @Version 1.0
 */
@Service
public class WxSafetyPartServiceImpl implements WxSafetyPartService {

    @DubboReference(interfaceClass = SafetyPartService.class, version = "1.0.0")
    private SafetyPartService safetyPartService;

    @Override
    public List<SafetyPartDTO> partList(Integer deptId, String keyword) {
        return safetyPartService.list(deptId, keyword);
    }
}
